package co.com.ticci.autolavado.vo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the ticci_concepto_x_clasificacion database table.
 * 
 */
@Entity
@Table(name="ticci_concepto_x_clasificacion")
@NamedQuery(name="TicciConceptoXClasificacion.findAll", query="SELECT t FROM TicciConceptoXClasificacion t")
public class TicciConceptoXClasificacion implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private TicciConceptoXClasificacionPK id;

	@Column(name="COCL_ESTADO")
	private byte coclEstado;

	@Column(name="COCL_VALOR")
	private BigDecimal coclValor;

	//bi-directional many-to-one association to TicciConcepto
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumns({
		@JoinColumn(name="AUTO_CONS", referencedColumnName="AUTO_CONS", insertable=false, updatable=false),
		@JoinColumn(name="CONC_CODIGO", referencedColumnName="CONC_CODIGO", insertable=false, updatable=false),
		@JoinColumn(name="EMPR_CONS", referencedColumnName="EMPR_CONS", insertable=false, updatable=false)
		})
	private TicciConcepto ticciConcepto;

	//bi-directional many-to-one association to TicciMaestro
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumns({
		@JoinColumn(name="EMPR_CONS", referencedColumnName="EMPR_CONS", insertable=false, updatable=false),
		@JoinColumn(name="MAES_CONS", referencedColumnName="MAES_CONS", insertable=false, updatable=false)
		})
	private TicciMaestro ticciMaestro;

	public TicciConceptoXClasificacion() {
	}

	public TicciConceptoXClasificacionPK getId() {
		return this.id;
	}

	public void setId(TicciConceptoXClasificacionPK id) {
		this.id = id;
	}

	public byte getCoclEstado() {
		return this.coclEstado;
	}

	public void setCoclEstado(byte coclEstado) {
		this.coclEstado = coclEstado;
	}

	public BigDecimal getCoclValor() {
		return this.coclValor;
	}

	public void setCoclValor(BigDecimal coclValor) {
		this.coclValor = coclValor;
	}

	public TicciConcepto getTicciConcepto() {
		return this.ticciConcepto;
	}

	public void setTicciConcepto(TicciConcepto ticciConcepto) {
		this.ticciConcepto = ticciConcepto;
	}

	public TicciMaestro getTicciMaestro() {
		return this.ticciMaestro;
	}

	public void setTicciMaestro(TicciMaestro ticciMaestro) {
		this.ticciMaestro = ticciMaestro;
	}

}